package com.hospital.pet.love.lovepethospital.resp;

import lombok.Getter;

/**
 * @author RoselleShaw
 * @create 2024-03-22 16:26
 */
@Getter
public enum ResultCodeEnum {

    SUCCESS(200, "操作成功"),
    PHONE_PASSWORD_NULL(201, "电话号码或者密码为空"),
    LOGIN_ERROR(202, "电话号码或者密码错误"),
    PHONE_EXIST(203, "电话号码已存在"),
    CHANGE_PASSWORD_ERROR(204, "密码为空"),
    LOGIN_AUTH(205, "用户未登录"),
    PET_INFO_NULL(206, "宠物类别、年龄或性别为空"),
    PET_NOT_EXIST(207, "宠物不存在"),
    NOT_EMPLOYEE(208, "不是员工"),
    NOT_ADMIN(209, "不是超级管理员"),
    EMPLOYEE_NOT_EXIST(210, "员工不存在"),
    DOCTOR_NOT_EXIST(211, "医生不存在"),
    REGISTER_NOT_EXIST(212, "挂号不存在"),
    REGISTER_STATE_ERROR(213, "挂号状态错误"),
    NOT_CONSUMER(214, "不是客户"),
    DRUG_NOT_EXIST(215, "药品不存在"),
    DRUG_SHORT(216, "药品不足"),
    NOT_DOCTOR(217, "不是医生"),
    MONEY_SHORT(218, "金额不足"),
    CASE_NOT_EXIST(219, "病例不存在"),
    PAID_OR_CANCELED(220, "已支付或已取消"),
    NOT_DRUGGIST(221, "不是药剂师"),
    CASE_STATUS_ERROR(222, "就诊状态错误"),
    DATA_ERROR(223,"数据异常"),
    UNKNOWN(999, "未知错误");

    private final Integer code;
    private final String message;

    ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

}
